// 重复的DNA
/**
 * @param {string} s
 * @return {string[]}
 */
 var findRepeatedDnaSequences = function(s) {
    let set = new Set();
  let res = new Set();
  let l = 0, r = 10;
  while (r <= s.length) {
      let cur = s.slice(l, r);
      if (set.has(cur)) res.add(cur);
      else set.add(cur);
      l += 1;
      r += 1;
  }
  return Array.from(res);
};